//package com.kly.sc.api.application.filters;
//
//import com.kly.sc.api.application.interceptors.AccessInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * Created with IntelliJ IDEA.
// * User: yujianfu (mr.vencnet@gmail.com)
// * Date: 2017/12/13
// * Time: 下午4:57
// */
//@Configuration
//public class InterceptorConfig extends WebMvcConfigurerAdapter {
//
//    @Autowired
//    private AccessInterceptor interceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(interceptor).addPathPatterns("/**");
//        super.addInterceptors(registry);
//    }
//}
